<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <jsp:include page="/platform/include/page_list_head.jsp">
		<jsp:param name="title" value="51家庭管家管理平台" />
	</jsp:include>
</head>
<body>
<header>
  <jsp:include page="/platform/include/top.jsp">
  	<jsp:param name="parentName" value="账号管理" />
  	<jsp:param name="parentUrl" value="list" />
  	<jsp:param name="currName" value="用户列表" />
  	<jsp:param name="hasPrint" value="false" />
  	<jsp:param name="hasExport" value="false" />
  </jsp:include>
</header>
  <div class="container-fluid clearfix">  
  	<jsp:include page="/platform/include/leftnavi.jsp"></jsp:include>
     <!-- 主内容 -->
    <div class="main-container" id="mainContainer">
       <form id="searchForm" role="_searchForm" action="list" method="post">
          <input id="pageno" name="pageno" type="hidden" value="${page.pageno}">
         <div class="containerWrap center-block">
           <!-- 搜索栏 -->
           <div class="cm-f14 cm-pdt10 cm-tar cm-overflow">
           	 <input class="cm-input-default cm-w200 cm-mr15" name="keyword" placeholder="请输入账号或姓名" value="${fn:escapeXml(param.keyword)}"  />
           	 <select class="cm-select-default cm-mr15" name="status" id="status" role="_defaultData"  data-defaultValue="${(null == param.status)?0:param.status}">
           	 	<option value="0">请选择状态</option>
                <c:if test="${commArray.arr_Isforbid != null}">
                    <c:forEach var="arrItem" items="${commArray.arr_Isforbid}" varStatus="idx" begin="1">      
                         <option value="${idx.index}">${arrItem}</option>
                    </c:forEach>
                </c:if>
           	 </select>
           	 <a href="javascript:void(0);" id="search-btn" role="_searchBtn" class="cm-btn-default search-btn cm-mr25" >搜索</a>
           	 <a href="edit" title="编辑" class="pull-right cm-btn-confirm-bg cm-btn-default" target="_box">新增</a>
           </div>
           <!-- 列表 -->
           <table class="table table-striped table-detailList">
             <thead>
                <tr>
                   <th width="12%">业务ID</th>
                   <th width="15%">账号</th>
                   <th width="15%">姓名</th>
                   <th width="18%">工作组</th>
                   <th width="10%">状态</th>
                   <th style="border-right:none;">操作</th>
                </tr>
             </thead>
             <tbody>
				<c:forEach var="result" items="${page.results}">               
                <tr>
                   <td >${result.code}</td>
                   <td >${xw:x(result.account)}</td>
                   <td >${xw:x(result.cname)}</td>
                   <td >${xw:x(result.groupname)}</td>
                   <td>
                      <c:choose>
                      	<c:when test="${1 == result.status}">
                      	<span class="label label-danger" role="_status">禁止</span>
                      	</c:when>
                      	<c:otherwise>
                      	<span class="label label-success" role="_status">正常</span>
                      	</c:otherwise>
                      </c:choose>
                   </td>
                   <td class="detailList-btn">
                      <a href="edit?id=${result.id}" title="用户编辑" class="pull-left icon-edit icon" target="_box"></a>  
                      <a href="changepass?id=${result.id}" title="修改密码" class="pull-left icon-exclamation-sign icon" target="_box"></a>  
                      <a href="javascript:void(0)" title="用户删除" data-url="ajax_delete" class="pull-left icon-remove icon" role="_deleteOp" data-id="${result.id }"></a>
                      <a href="javascript:void(0)" title="修改状态" data-id="${result.id }"  data-url="ajax_updatestatus" role="_updateOp" class="${(result.status==1)?'icon-ok-circle icon':'icon-ban-circle icon disable' }"  ></a>
                   </td>
                </tr>
				</c:forEach>                
             </tbody>
           </table>
            <!--分页 -->
     		<jsp:include page="/platform/include/pagebar.jsp"></jsp:include>
         </div>
       </form>
    </div>
  </div>
  <jsp:include page="/platform/include/page_list_footer.jsp"></jsp:include>
</body>
</html>


